package OOP1.Zhuoyai.Zyai;
public class Mall {
    String mid;
    String name;
    int Mobile;
    int integral;
    int pos = 0;
    //数组
    Mall hy[] = new Mall[30];
public void function(){
    System.out.println("1.添加新会员");
    System.out.println("2.增加积分");
    System.out.println("3.会员判断");
    System.out.println("4.会员积分兑换礼品");

}
public void chenggong(){
    System.out.println("恭喜你成为VIP会员");
    System.out.println("会员信息为："+mid+"会员号"+name+"姓名"+Mobile+"手机号"+integral+"积分"+integral);
}
    public Mall() {
        this.mid = mid;
        this.name = name;
        int mobile=0;
        Mobile = mobile;
        this.integral = integral;
        this.pos = pos;
    }

    //添加会员判断会员是否重复
    public void addName(Mall mall) {
        for (int i = 0; i < hy.length; i++) {
            if (hy[i] == null) {
                hy[i].name = name;
                break;
            }
        }
        for (int i = 0; i < pos; i++) {
            if (hy[i].name.equals(name)) {
                System.out.println("名字以重复");
                return;
            }
        }
    }
    public void dh(){
    switch (integral){
        case 100:

            break;
        case 400:
            int b=0;

    }
    }
}
